package org.xxpay.core.entity;

import java.io.Serializable;
import java.util.Date;

public class ResendRecord implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Long id;

    /**
     * 支付订单号
     *
     * @mbg.generated
     */
    private String payOrderId;

    /**
     * 补单类型 1-支付订单 2-商户通知
     *
     * @mbg.generated
     */
    private Byte resendType;

    /**
     * 补单任务状态 1-任务开始 2-任务完成
     *
     * @mbg.generated
     */
    private Byte resendState;

    /**
     * 补单前任务状态
     *
     * @mbg.generated
     */
    private Byte beforeState;

    /**
     * 补单后任务状态
     *
     * @mbg.generated
     */
    private Byte afterState;

    /**
     * 金额,单位分
     *
     * @mbg.generated
     */
    private Long amount;

    /**
     * 补单备注
     *
     * @mbg.generated
     */
    private String remark;

    /**
     * 操作人ID
     *
     * @mbg.generated
     */
    private Long operateUserId;

    /**
     * 操作人姓名
     *
     * @mbg.generated
     */
    private String operateUserName;

    /**
     * 操作人所属平台 1：运营平台, 2：商户平台, 3:代理商系统
     *
     * @mbg.generated
     */
    private Byte operateUserBelongSystem;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 响应报文
     *
     * @mbg.generated
     */
    private String resData;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPayOrderId() {
        return payOrderId;
    }

    public void setPayOrderId(String payOrderId) {
        this.payOrderId = payOrderId;
    }

    public Byte getResendType() {
        return resendType;
    }

    public void setResendType(Byte resendType) {
        this.resendType = resendType;
    }

    public Byte getResendState() {
        return resendState;
    }

    public void setResendState(Byte resendState) {
        this.resendState = resendState;
    }

    public Byte getBeforeState() {
        return beforeState;
    }

    public void setBeforeState(Byte beforeState) {
        this.beforeState = beforeState;
    }

    public Byte getAfterState() {
        return afterState;
    }

    public void setAfterState(Byte afterState) {
        this.afterState = afterState;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getOperateUserId() {
        return operateUserId;
    }

    public void setOperateUserId(Long operateUserId) {
        this.operateUserId = operateUserId;
    }

    public String getOperateUserName() {
        return operateUserName;
    }

    public void setOperateUserName(String operateUserName) {
        this.operateUserName = operateUserName;
    }

    public Byte getOperateUserBelongSystem() {
        return operateUserBelongSystem;
    }

    public void setOperateUserBelongSystem(Byte operateUserBelongSystem) {
        this.operateUserBelongSystem = operateUserBelongSystem;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getResData() {
        return resData;
    }

    public void setResData(String resData) {
        this.resData = resData;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", payOrderId=").append(payOrderId);
        sb.append(", resendType=").append(resendType);
        sb.append(", resendState=").append(resendState);
        sb.append(", beforeState=").append(beforeState);
        sb.append(", afterState=").append(afterState);
        sb.append(", amount=").append(amount);
        sb.append(", remark=").append(remark);
        sb.append(", operateUserId=").append(operateUserId);
        sb.append(", operateUserName=").append(operateUserName);
        sb.append(", operateUserBelongSystem=").append(operateUserBelongSystem);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", resData=").append(resData);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ResendRecord other = (ResendRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getPayOrderId() == null ? other.getPayOrderId() == null : this.getPayOrderId().equals(other.getPayOrderId()))
                && (this.getResendType() == null ? other.getResendType() == null : this.getResendType().equals(other.getResendType()))
                && (this.getResendState() == null ? other.getResendState() == null : this.getResendState().equals(other.getResendState()))
                && (this.getBeforeState() == null ? other.getBeforeState() == null : this.getBeforeState().equals(other.getBeforeState()))
                && (this.getAfterState() == null ? other.getAfterState() == null : this.getAfterState().equals(other.getAfterState()))
                && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
                && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
                && (this.getOperateUserId() == null ? other.getOperateUserId() == null : this.getOperateUserId().equals(other.getOperateUserId()))
                && (this.getOperateUserName() == null ? other.getOperateUserName() == null : this.getOperateUserName().equals(other.getOperateUserName()))
                && (this.getOperateUserBelongSystem() == null ? other.getOperateUserBelongSystem() == null : this.getOperateUserBelongSystem().equals(other.getOperateUserBelongSystem()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
                && (this.getResData() == null ? other.getResData() == null : this.getResData().equals(other.getResData()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPayOrderId() == null) ? 0 : getPayOrderId().hashCode());
        result = prime * result + ((getResendType() == null) ? 0 : getResendType().hashCode());
        result = prime * result + ((getResendState() == null) ? 0 : getResendState().hashCode());
        result = prime * result + ((getBeforeState() == null) ? 0 : getBeforeState().hashCode());
        result = prime * result + ((getAfterState() == null) ? 0 : getAfterState().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getOperateUserId() == null) ? 0 : getOperateUserId().hashCode());
        result = prime * result + ((getOperateUserName() == null) ? 0 : getOperateUserName().hashCode());
        result = prime * result + ((getOperateUserBelongSystem() == null) ? 0 : getOperateUserBelongSystem().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getResData() == null) ? 0 : getResData().hashCode());
        return result;
    }
}